	
<?php
if ($pro_list->num_rows() > 0) {
    foreach ($pro_list->result() as $rows) {
		if($rows->pro_statu_id == 1){
			
			
        ?>
        <div class="col col_14 product_gallery" style="width:123px; border:1px solid #ccc;">
            <a href="<?php echo site_url("pages/productdetail"); ?>/<?php echo $rows->pro_id; ?>">
                <img class="dev_p" src="<?php echo site_url(); ?>assets/uploads/thumbs/thumb_<?php echo $rows->pro_img; ?>" title="<?php echo $rows->pro_name; ?>" />
            </a>
            <h3><?php echo substr($rows->pro_description, 0, 20); ?>
            </h3>

            <p class="product_price"><?php echo $rows->pro_price; ?></p>
            <a href="<?php echo site_url("pages/productdetail"); ?>/<?php echo $rows->pro_id; ?>">View Detail</a>
        </div> 


        <?php
		}
    }
}
  	 ?>    
     <div style="width:100%; float:left; text-align:center;">
     	<ul>
     		<li style="display:inline; color:#09F;"><?php echo $pages; ?></li>  
     	</ul>
     </div>       
